{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="javascript:;">入驻套餐</a></li>
</ul>
<div class="app-content">
	<div class="app-filter">
		<div class="filter-action">
			<a class="btn btn-primary" href="{php echo web_url('store/storeSetMeal/add');}">增加套餐</a>
		</div>
	</div>
	<div class="app-table-list">
		<div class="table-responsive">
			<table class="table table-hover">
				<thead>
					<tr>
						<th class="text-center">套餐名称</th>
						<th class="text-center">所属代理</th>
						<th class="text-center">时长</th>
						<th class="text-center">价格</th>
						<th class="text-center">是否免审核</th>
						<th class="text-center">排序</th>
						<th class="text-center">是否启用</th>
						<th class="text-center">是否用于续费</th>
						<th class="text-center">操作</th>
					</tr>
				</thead>
				<tbody>
					{loop $list $item}
						<tr class="text-center" >
							<td>
								{$item['name']}
							</td>
							<td>
								{$item['agentname']}
							</td>
							<td>
								{$item['days']}天
							</td>
							<td>{$item['price']}</td>
							<td>{if $item['audits']==1}<label class="label label-primary">免审核</label>{else}<label class="label label-default">需审核</label>{/if}</td>
							<td>
								{$item['sort']}
							</td>
							<td>{php echo tpl_change_status('store/storeSetMeal/changeStatus&id='.$item['id'],$item['status'])}</td>
							<td>{if $item['renewstatus']==1}<label class="label label-primary">续费可用</label>{else}<label class="label label-default">续费禁用</label>{/if}</td>
							<td style="position:relative;">
								<a href="{php echo web_url('store/storeSetMeal/add',array('id'=>$item['id']))}">编辑  </a> -
								<a data-toggle='ajaxPost' data-confirm="确认删除此分类吗？"  href="{php echo web_url('store/storeSetMeal/delete',array('id'=>$item['id']))}">删除  </a>
							</td>
						</tr>
					{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">

			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
</div>
{php include wl_template('common/footer');}